# coding=utf-8
import os
pwd = os.getcwd()  # 获取当前路径
DATA_PATH = os.path.join(pwd,'data')
upload_path = os.path.join(pwd,'static/upload')
APP_CONTEXT_PATH = '/guest'
'''
errorCode
'''
REQUEST_SUCCESS = 0
ROWKEY_EMPTY = 1001

def api_result(errorCode,message=None,**kwargs):
    result = {'errorCode':errorCode,'message':message}
    for k,v in kwargs.items():
        result[k] = v
    return result